<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/Public/Home/css/common.css" rel="stylesheet" type="text/css" />
<link href="/Public/Home/css/style.css" rel="stylesheet" type="text/css" />
<script src="/Public/Home/js/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="/Public/Home/js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
<script src="/Public/Home/js/common_js.js" type="text/javascript"></script>
<script src="/Public/Home/js/footer.js" type="text/javascript"></script>
<title>食品商场</title>
</head>
<script type="text/javascript" charset="UTF-8">
<!--
 //点击效果start
 function infonav_more_down(index)
 {
  var inHeight = ($("div[class='p_f_name infonav_hidden']").eq(index).find('p').length)*30;//先设置了P的高度，然后计算所有P的高度
  if(inHeight > 60){
   $("div[class='p_f_name infonav_hidden']").eq(index).animate({height:inHeight});
   $(".infonav_more").eq(index).replaceWith('<p class="infonav_more"><a class="more"  onclick="infonav_more_up('+index+');return false;" href="javascript:">收起<em class="pulldown"></em></a></p>');
  }else{
   return false;
  }
 }
 function infonav_more_up(index)
 {
  var infonav_height = 85;
  $("div[class='p_f_name infonav_hidden']").eq(index).animate({height:infonav_height});
  $(".infonav_more").eq(index).replaceWith('<p class="infonav_more"> <a class="more" onclick="infonav_more_down('+index+');return false;" href="javascript:">更多<em class="pullup"></em></a></p>');
 }
   
 function onclick(event) {
  info_more_down();
 return false;
 }
 //点击效果end  
//-->
</script>
<body>
<div id="header_top">
    <div id="top">
        <div class="Inside_pages">
          <div class="Collection">
            <?php if(is_login()): ?><span id="loginbtn"  class="green"><?php echo get_username();?></span>
               <a href="<?php echo U('User/logout');?>" class="f12">退出</a>
                <?php else: ?>
                <a href="<?php echo U('User/login');?>" class="green">请登录</a> 
                <a href="<?php echo U('User/register');?>" class="green">免费注册</a><?php endif; ?>
            </div>
        </div>
    </div>
    <div id="header"  class="header page_style">
        <div class="logo"><a href="index.html"><img src="/Public/Home/images/logo.png" /></a></div>
        <!--结束图层-->
        <form class="Search" method="post" action="<?php echo U('Lei/index');?>">
            <div class="search_list">
                <ul>
                    <li class="current">产品</li>
                </ul>
            </div>
            <div class="clear search_cur">
                <input name="title" id="searchName" class="search_box" onkeydown="keyDownSearch()" type="text" value="">
                <input name="" type="submit" value="搜 索"  class="Search_btn"/>
            </div>
        </form>
        <!--购物车样式-->
        <div class="hd_Shopping_list" id="Shopping_list">
            <div class="s_cart">
            <a href="<?php echo U('Shops/index');?>">我的购物车</a>
           
        
             </div>
        </div>
    </div>
	<div class="Navigation" id="Navigation">
		 <ul class="Navigation_name">
			<li><a href="<?php echo U('Index/index');?>">首页</a></li>
       <li class="hour">
       <span class="bg_muen">
            </span>
            <a>半小时生活圈</a></li>
			<li><a href="<?php echo U('Leibiao/index');?>">新品专区</a>
     	    <em class="hot_icon"></em></li>
			
		 </ul>			 
		</div>
    <script>$("#Navigation").slide({titCell:".Navigation_name li",trigger:"click"});</script> 
</div>
</head>

<!--广告幻灯片样式-->
   	<div id="slideBox" class="slideBox">
			<div class="hd">
				<ul class="smallUl"></ul>
			</div>
			<div class="bd">
				<ul>
					<li><a href="#" target="_blank"><div style="background:url(/Public/Home/AD/ad-1.jpg) no-repeat; background-position:center; width:100%; height:450px;"></div></a></li>
					<li><a href="#" target="_blank"><div style="background:url(/Public/Home/AD/ad-2.jpg) no-repeat; background-position:center ; width:100%; height:450px;"></div></a></li>
				</ul>
			</div>
			<!-- 下面是前/后按钮-->
			<a class="prev" href="javascript:void(0)"></a>
			<a class="next" href="javascript:void(0)"></a>

		</div>
		<script type="text/javascript">
		jQuery(".slideBox").slide({titCell:".hd ul",mainCell:".bd ul",autoPlay:true,autoPage:true});
		</script>
 </div>

<!--内容样式-->
<div id="mian">
 <div class="clearfix marginbottom">
 <!--产品分类样式-->
  <div class="Menu_style" id="allSortOuterbox">
   <div class="title_name"><em></em>所有商品分类</div>
   <div class="content hd_allsort_out_box_new">
    <ul class="Menu_list">
		  <?php if(is_array($tree)): $i = 0; $__LIST__ = $tree;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tre): $mod = ($i % 2 );++$i;?><li class="name">
		  	 <div class="Menu_name"><a href="<?php echo U('Lei/index',array('id'=>$tre['id']));?>"><?php echo ($tre['title']); ?></a> <span>&lt;</span></div>
		     <div class="link_name">
		  <p>
		  <?php if(is_array($tre['_'])): $i = 0; $__LIST__ = $tre['_'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Lei/index',array('id'=>$v['id']));?>"><?php echo ($v["title"]); ?></a> |<?php endforeach; endif; else: echo "" ;endif; ?>
          </p>
          </div>
          <div class="menv_Detail">
          <div class="cat_pannel clearfix">
          <div class="hd_sort_list">
          <?php if(is_array($tre['_'])): $i = 0; $__LIST__ = $tre['_'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?><dl class="clearfix" data-tpc="1">
			 <dt><a href="<?php echo U('Lei/index',array('id'=>$vv['id']));?>"><?php echo ($vv["title"]); ?><i>></i></a></dt>
			 <dd>
			 <?php if(is_array($vv['_'])): $i = 0; $__LIST__ = $vv['_'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Lei/index',array('id'=>$v['id']));?>"><?php echo ($v['title']); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
		  </dd>
		</dl><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
		   <div class="Brands">
		</div>
		</div>
			</div><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
   </div>
  </div>
  <script>$("#allSortOuterbox").slide({ titCell:".Menu_list li",mainCell:".menv_Detail",	});</script>
  <!--产品栏切换-->
  <div class="product_list left">
  		<div class="slideGroup">
			<div class="parHd">
				<ul>
        <li>健康饮食</li>
        </ul>
			</div>
			<div class="parBd">
					<div class="slideBoxs">
						<a class="sPrev" href="javascript:void(0)"></a>
						<ul>
						<?php if(is_array($sho)): $i = 0; $__LIST__ = $sho;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li>
								<div class="pic">
                <a href="<?php echo U('xiang/index',array('id'=>$v['id'],'mprice'=>$v['2']));?>" target="_blank">
                <img src="/Uploads/<?php echo ($v["1"]); ?>" />
                </a>
                </div>
								<div class="title">
                <a href="#" target="_blank" class="name"><?php echo ($v["0"]); ?></a>
                 <h3><b>￥</b><?php echo ($v["2"]); ?></h3>
                 </div>
							</li><?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>
						<a class="sNext" href="javascript:void(0)"></a>
					</div><!-- slideBox End -->
			</div><!-- parBd End -->
		</div>
        <script type="text/javascript">
			/* 内层图片无缝滚动 */
			jQuery(".slideGroup .slideBoxs").slide({ mainCell:"ul",vis:4,prevCell:".sPrev",nextCell:".sNext",effect:"leftMarquee",interTime:50,autoPlay:true,trigger:"click"});
			/* 外层tab切换 */
			jQuery(".slideGroup").slide({titCell:".parHd li",mainCell:".parBd"});
		</script>
        <!--广告样式-->
        <div class="Ads_style">
        <?php if(is_array($s)): $i = 0; $__LIST__ = $s;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$a): $mod = ($i % 2 );++$i;?><a href="<?php echo U('xiang/index',array('id'=>$a['id']));?>">
        <img src="/Uploads/<?php echo ($a["pic"]); ?>" style="width:318px;height:308px">
        </a><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
  </div>
 </div>
 <!--板块栏目样式-->
 <div class="clearfix Plate_style">
  <div class="Plate_column Plate_column_left">
    <div class="Plate_name">
    <h2>最新产品</h2>
    <div class="Sort_link">
    <?php if(is_array($zs)): $i = 0; $__LIST__ = $zs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$j): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Lei/index',array('id'=>$j['id']));?>" class="name"><?php echo (mb_substr($j["title"],0,4,utf8)); ?>...</a><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <img src="/Public/Home/images/bk_img_14.png" />
    </div>
    <div class="Plate_product">
    <ul id="lists">
    <?php if(is_array($inp)): $i = 0; $__LIST__ = $inp;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$in): $mod = ($i % 2 );++$i;?><li class="product_display">
     <a href="<?php echo U('xiang/index',array('id'=>$in['id']));?>" class="img_link">
     <img src="/Uploads/<?php echo ($in["pic"]); ?>"  width="140" height="140"/>
     </a>
     <a href="<?php echo U('xiang/index',array('id'=>$in['id']));?>" class="name"><?php echo ($in["title"]); ?></a>
     <h3><b>￥</b><?php echo ($ior[$key]); ?></h3>
    <div class="Detailed">
	   <div class="content">
		  <p class="center">
      <a href="<?php echo U('xiang/index',array('id'=>$in['id']));?>" class="Buy_btn">立即购买</a>
      </p>
		  </div>
	   </div>
     </li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    </div>
  </div>
  <!--板块名称-->
    <div class="Plate_column Plate_column_right">
    <div class="Plate_name">
    <h2>热门推荐</h2>
    <div class="Sort_link">
    <?php if(is_array($ss)): $i = 0; $__LIST__ = $ss;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$j): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Lei/index',array('id'=>$j['id']));?>" class="name"><?php echo (mb_substr($j["title"],0,4,utf8)); ?>...</a><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <img src="/Public/Home/images/bk_img_19.png" />
    </div>
    <div class="Plate_product">
    <ul id="lists">
    <?php if(is_array($input)): $i = 0; $__LIST__ = $input;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$put): $mod = ($i % 2 );++$i;?><li class="product_display">
     <a href="<?php echo U('xiang/index',array('id'=>$put['id']));?>" class="img_link">
     <img src="/Uploads/<?php echo ($put["pic"]); ?>"  width="140" height="140"/></a>
     <a href="<?php echo U('xiang/index',array('id'=>$put['id']));?>" class="name"><?php echo ($put["title"]); ?></a>
     <h3><b>￥</b><?php echo ($io[$key]); ?></h3>
    <div class="Detailed">
	   <div class="content">
		  <p class="center"><a href="<?php echo U('xiang/index',array('id'=>$put['id']));?>" class="Buy_btn">立即购买</a></p>
		  </div>
	   </div>
     </li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    </div>
  </div>
 </div>
 <!--友情链接-->
 <div class="link_style clearfix">
 <div class="title">友情链接</div>
 <div class="link_name">
 <?php if(is_array($friend)): $i = 0; $__LIST__ = $friend;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$fr): $mod = ($i % 2 );++$i;?><a href="<?php echo ($fr["url"]); ?>" style="width: 100px;height: 50px;text-align: center;line-height: 20px;"><?php echo ($fr["name"]); ?><br><?php echo (mb_substr($fr["des"],0,7,utf8)); ?>...</a><?php endforeach; endif; else: echo "" ;endif; ?>
 </div>
 </div>



<div class="copyright">
    <div class="copyright-bg">
        <div class="hotline">为生活充电在线 <span>招商热线：****-********</span> 客服热线：400-******</div>
        <div class="hotline co-ph">
            <p>版权所有Copyright ©***************</p>
            <p>*ICP备***************号 不良信息举报</p>
            <p>总机电话：****-*********/194/195/196 客服电话：4000****** 传 真：********
                
                E-mail:****@****.gov.cn</p>
        </div>
    </div>
</div>
<!--右侧菜单栏购物车样式-->
<div class="fixedBox">
    <ul class="fixedBoxList">
         <a href="<?php echo U('Shops/index');?>">
        <li class="fixeBoxLi cart_bd" style="display:block;" id="cartboxs">
            

            <span class="fixeBoxSpan"></span> <strong>购物车</strong>
            <div class="cartBox">
                <div class="bjfff"></div>
                <div class="message">购物车内暂无商品，赶紧选购吧</div>
            </div>
        </li>
        </a>
        <li class="fixeBoxLi Service "> <span class="fixeBoxSpan"></span> <strong>客服</strong>
            <div class="ServiceBox">
                <div class="bjfffs"></div>
                <dl onclick="javascript:;">
                    <dt><img src="/Public/Home/images/Service1.png"></dt>
                    <dd><strong>QQ客服1</strong>
                        <p class="p1">9:00-22:00</p>
                        <p class="p2"><a href="http://wpa.qq.com/msgrd?v=3&amp;uin=123456&amp;site=DGG三端同步&amp;menu=yes">点击交谈</a></p>
                    </dd>
                </dl>
                <dl onclick="javascript:;">
                    <dt><img src="/Public/Home/images/Service1.png"></dt>
                    <dd> <strong>QQ客服1</strong>
                        <p class="p1">9:00-22:00</p>
                        <p class="p2"><a href="http://wpa.qq.com/msgrd?v=3&amp;uin=123456&amp;site=DGG三端同步&amp;menu=yes">点击交谈</a></p>
                    </dd>
                </dl>
            </div>
        </li>
        <li class="fixeBoxLi code cart_bd " style="display:block;" id="cartboxs"> <span class="fixeBoxSpan"></span> <strong>微信</strong>
            <div class="cartBox">
                <div class="bjfff"></div>
                <div class="QR_code">
                    <p><img src="images/erweim.jpg" width="180px" height="180px" /></p>
                    <p>微信扫一扫，关注我们</p>
                </div>
            </div>
        </li>
        <li class="fixeBoxLi BackToTop"> <span class="fixeBoxSpan"></span> <strong>返回顶部</strong> </li>
    </ul>
</div>
</body>
</html>